package com.dailyblue.java.standard.thread.pool;

public class Task implements Runnable {

    private Integer i;

    public Task(Integer i) {
        this.i = i;
    }

    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("你好，" + name + "执行了:" + i);
    }
}
